using Marknic.TestRunner.Rigging;
using NetduinoRobot.Common;
using NetduinoHappyHour.Util;
using System;

namespace NetduinoHappyHour.Util
{
    /// <summary>
    /// test class for ReadSystemConfigTest
    /// is intended to contain all ReadSystemConfigTest Unit Tests
    /// Written by: Salvador Richter
    /// Appache License Version 2.0 
    ///</summary>
    public class ReadSystemConfigTest
    {
        public void TestReadConfig()
        {
            string message = null;
            ReadSystemConfig readSysConf = new ReadSystemConfig();
            
            readSysConf.Execute();
            message = readSysConf.ResponseMessage();

            // Assert there are some SystemConfig values
            Assert.IsNotNull(message);
            // Assert there are at least two of them
            Assert.IsTrue(message.Contains(CommandHelper.CommandSeparator.ToString()));
        }
    }
}
